<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>

<template id="ami_gatepass_doc">
    <t>
	    <div class="header">
	    	<div class="row">
				<div class="col-xs-4">
                	<img t-if="o.company_id.logo" t-att-src="'data:image/png;base64,%s' % o.company_id.logo" style="max-height: 100px;"/>
            	</div>
            	<div class="col-xs-offset-1">
            		<h3 class="mt0 mb0 ex">GATE PASS</h3>
	           		<h3 class="mt0 mb0"><strong><span t-field="o.company_id.name"/></strong></h3>
             		<h4 class="mt0 mb0"><span t-field="o.company_id.street"/>, <span t-field="o.company_id.street2"/>, <span t-field="o.company_id.city"/>-<span t-field="o.company_id.country_id.name"/>,  <span t-field="o.company_id.zip"/>.</h4>
             		<h4 class="mt0 mb0 redline">Telp: <span t-field="o.company_id.phone"/> Fax: <span t-field="o.company_id.fax"/><span class="ex">------------------------------------</span></h4>
		        </div>
            </div>
            <div class="mt8 mb8 row"/>
		    <div class="row">
		    	<div class="col-xs-2">
	           		<p class="mt0 mb0"><strong>GP No. :</strong></p>
             		<p class="mt0 mb0"><strong>Date   :</strong></p>
             		<br/>
             		<p class="mt0 mb0"><strong>Project:</strong></p>
		        </div>
		        <div class="col-xs-4 col-xs-offset-0">
	           		<p class="mt0 mb0" t-field="o.name"/>
             		<p class="mt0 mb0" t-field="o.date" t-field-options='{"format": "dd/MM/yyyy"}'/>
             		<br/>
             		<p class="mt0 mb0" t-field="o.project_id2.name"/>
		        </div>
		        <div class="col-xs-3 col-xs-offset-0">
	           		<p class="mt0 mb0"><strong>To    :</strong></p>
	           		<p class="mt0 mb0"><span class="mt0 mb0" t-field="o.real_partner_id.name"/></p>
	           		<p class="mt0 mb0"><span t-field="o.real_partner_id"
                        t-field-options='{"widget": "contact", "fields": ["address"], "no_marker": true}'/></p>
             		<p class="mt0 mb0"><strong>Attn  : </strong><span class="mt0 mb0" t-field="o.partner_id.name or o.real_partner_id.name"/></p>
		        </div>
		    </div>
	    </div>
	    
	    <div class="page">
            <div class="oe_structure"/>
            <div class="row">
		    	<h3 class="text-center"><strong>GATEPASS</strong></h3>
		    </div>
            <div class="row">
            <table class="table table-condensed">
                <thead>
                    <tr>
                    	<th class="text-center greybgcolor">No.</th>
                        <th class="text-center greybgcolor">Description</th>
                        <th class="text-center greybgcolor">Quantity</th>
                        <th class="text-center greybgcolor">UOM</th>
                    </tr>
                </thead>
				<tbody class="invoice_tbody">
	                <t t-foreach="o.move_lines" t-as="l">
						<tr class="kolum">
							<td width="5%"/>
							<td width="75%"><span t-field="l.name"/></td>
							<td width="10%" class="text-right"><span t-field="l.product_uom_qty"/></td>
							<td width="10%"><span t-field="l.product_uom.name"/></td>
						</tr>
					</t>  
                </tbody>
            </table>
            </div>
            <div class="oe_structure"/>
        </div>
        
        <div class="footer">
			<div class="row signature" style="visibility:hidden;">
				<div class="row col-xs-12 upper-line"></div>
			
				<div class="col-xs-8">
					<p><span>Remark:</span></p>
					<p class="mt0 mb0">1. Delivery by:</p>
					<p class="mt0 mb0">2. Vehicle ID: </p>
					<p class="mt0 mb0">3. Purpose: </p>
				</div>
        		
        		<div class="row mt16 mb16"></div>
        		
        		<div class="col-xs-4">
					<p class="mt0 mb0">Received by,</p>
					<br class="mt0 mb0"/>
					<br class="mt0 mb0"/>
					<p class="mt0 mb0">electronic signature</p>
					<br class="mt0 mb0"/>
					<br class="mt0 mb0"/>
					<p class="mt0 mb0">Requestor Name</p>
				</div>
				<div class="col-xs-4">
					<p class="mt0 mb0">Prepared by,</p>
					<br class="mt0 mb0"/>
					<br class="mt0 mb0"/>
					<p class="mt0 mb0">electronic signature</p>
					<br class="mt0 mb0"/>
					<br class="mt0 mb0"/>
					<p class="mt0 mb0">Storeman Name</p>
				</div>
				<div class="col-xs-4">
					<p class="mt0 mb0">Approved by,</p>
					<br class="mt0 mb0"/>
					<br class="mt0 mb0"/>
					<p class="mt0 mb0">electronic signature</p>
					<br class="mt0 mb0"/>
					<br class="mt0 mb0"/>
					<p class="mt0 mb0">Manager/Supervisor Name</p>
				</div>
				<div class="row mt32 mb32"/>
				<div class="col-xs-4">
					<p class="mt0 mb0"><span>Security Checked by,</span></p>
					<br class="mt0 mb0"/>
					<br class="mt0 mb0"/>
					<p class="mt0 mb0">Name : </p>
					<p class="mt0 mb0">Date : </p>
				</div>
				<div class="col-xs-4">
					<p class="mt0 mb0"></p>
					<br class="mt0 mb0"/>
					<br class="mt0 mb0"/>
					<p class="mt0 mb0"></p>
					<br class="mt0 mb0"/>
					<br class="mt0 mb0"/>
					<p class="mt0 mb0"></p>
				</div>
				<div class="col-xs-4">
					<p class="mt0 mb0"><span>Received by,</span></p>
					<br class="mt0 mb0"/>
					<br class="mt0 mb0"/>
					<p class="mt0 mb0">Name : </p>
					<p class="mt0 mb0">Date : </p>
				</div>
			</div>
        	<div class="row"/>
	        <div class="text-right">
	            <small>
	                <span>Page</span>
	                <strong><span class="page"/></strong>
	                of
	                <strong><span class="topage" /></strong>
	            </small>
	        </div>
        </div>
	</t>
</template>

<template id="ami_gatepass">
    <t t-call="report.html_container">
        <t t-foreach="doc_ids" t-as="doc_id">
            <t t-raw="translate_doc(doc_id, doc_model, 'partner_id.lang','batam_fast_module.ami_gatepass_doc')"/>
        </t>
    </t>
</template>
</data>
</openerp>
